package com.kasax.hilog.formatter;


/**
 * 堆栈信息格式化
 */
public class StackTraceFromatter implements ILogFormatter<StackTraceElement[]> {
    @Override
    public String format(StackTraceElement[] source) {
        StringBuffer sb = new StringBuffer();
        for (StackTraceElement stackTraceElement : source) {
            sb.append(stackTraceElement.toString()).append("\r\n");
        }
        return sb.toString();
    }
}
